<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<script src="js/jquery.min.js"></script>
		<title>z支付</title>
		<style type="text/css">
			h1{
				text-align: center;
			}
			body{
				background-color: #C9E2B3;
			}
			button{
				margin-left: 250px;
				margin-top: 100px;
				width: 100px;
				height: 50px; 
				font-size: 15px; 
				border-radius: 15px;
			}
		</style>
	</head>
	<body>
		<h1>支付</h1>
		<button id="alipay" type="button" style=" background-color: #269ABC;">支付宝支付</button>
		<button id="weichatpay" type="button" style="background-color: #449D44;">微信支付</button>
	</body>

	<script type="text/javascript">
		$("#alipay").click(function(){
			$("#alipay").attr("disabled",true);
			$("#weichatpay").attr("disabled",true);
			$(this).text("已支付");
			window.alert("已成功支付！")
		})
		$("#weichatpay").click(function(){
			$("#alipay").attr("disabled",true);
			$("#weichatpay").attr("disabled",true);
			$(this).text("已支付");
			window.alert("已成功支付！");
		})
	</script>
	
</html>
